#实现项目中的业务，接口执行
import allure

from common.api.BaseRequest import BaseRequest


class Event:
    @classmethod
    @allure.step("登录pinter系统")
    def bank_login(self,request,parametrize):
        rp=BaseRequest.execute_api_request(request=request,parametrize=parametrize)
        return rp

    @classmethod
    @allure.step("查询用户余额")
    def bank_query(self, request, parametrize):
        rp = BaseRequest.execute_api_request(request=request, parametrize=parametrize)
        return rp